/*
    SUSAN® - Sole of Unix Save ANything

   Copyright (C) 2016-2019 Skyatlas co. ltd

   
*/

#ifndef BAREOS_DIRD_UA_PURGE_H_
#define BAREOS_DIRD_UA_PURGE_H_

#include "dird/ua.h"

namespace directordaemon {

bool IsVolumePurged(UaContext* ua, MediaDbRecord* mr, bool force = false);
bool MarkMediaPurged(UaContext* ua, MediaDbRecord* mr);
void PurgeFilesFromVolume(UaContext* ua, MediaDbRecord* mr);
bool PurgeJobsFromVolume(UaContext* ua, MediaDbRecord* mr, bool force = false);
void PurgeFilesFromJobs(UaContext* ua, const char* jobs);
void PurgeJobsFromCatalog(UaContext* ua, const char* jobs);
void PurgeJobListFromCatalog(UaContext* ua, del_ctx& del);
void PurgeFilesFromJobList(UaContext* ua, del_ctx& del);

} /* namespace directordaemon */
#endif  // BAREOS_DIRD_UA_PURGE_H_
